home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7060 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: sparky.navsea.navy.mil!matuli_a
  2. From: matuli_a@marlin.navsea.navy.mil (Alex Matulich 03T1 602-6691)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Messages vs. Semaphores for external clocking
  5. Date: 8 Apr 1996 13:52:53 GMT
  6. Organization: Naval Sea Systems Command Code 03T1
  7. Message-ID: <4kb5nl$c8u@sparky.navsea.navy.mil>
  8. References: <4ju349$r1e@sparky.navsea.navy.mil> <4jumqg$ss7@serpens.rhein.de>
  9. NNTP-Posting-Host: marlin.navsea.navy.mil
  10.  
  11. Michael van Elst <mlelstv@serpens.rhein.de> wrote:
  12. >matuli_a@marlin.navsea.navy.mil (Alex Matulich 03T1 602-6691) writes:
  13. >
  14. >>The time units number will be stored either in a Message or Semaphore.
  15. >>Then my primary application, running at the same time, will be able to
  16. >>access this time number any time it needs to.
  17. >
  18. >This depends on when the primary application needs the data, how fast
  19. >it has to get access and wether the data aquisition task is allowed
  20. >to be blocked.
  21.  
  22. It needs access within 1/30 to 1/60 of a second from the time it decides
  23. that it needs access.  From email replies I've received, the consensus
  24. seems to be that using semaphores might involve less overhead than
  25. messages, and any delays associated with either may come out the same.
  26.  
  27. >For example, if the data aquisition tasks must not be blocked and
  28. >the primary task can handle some delay then you would use N messages.
  29.  
  30. That would work, but I don't need to send a message for every data item
  31. acquired.  The main application just has to poll the data acquisition
  32. appication (an external clock) whenever it needs to.
  33.  
  34. Thanks.
  35.  
  36. -- 
  37.                                            /|
  38. Alex Matulich                      __.  __=#||  ___   _o--
  39. matuli_a@marlin.navsea.navy.mil ____##_/_____|==###===###____
  40.                                 \____________________________\
  41.